//
//  main.cpp
//  map and set exercise
//
//  Created by 卜绎皓 on 2022/11/10.
//

#include <iostream>
#include <set>
using namespace std;

void TestSet()
{
    int array[] = { 1,2, 1, 3, 9, 6, 0, 5, 8, 4, 7 };
    
    // 注意：multiset在底层实际存储的是<int, int>的键值对
    multiset<int> s(array, array + sizeof(array)/sizeof(array[0]));
    for (auto& e : s)
        cout << e << " ";
    cout << endl;
}

int main()
{
    TestSet();
    return 0;
}
